package cn.sunshine.framework.beans.factory.support;

import cn.sunshine.framework.beans.BeansException;
import cn.sunshine.framework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * @Description 实例化策略
 * @Author Mokairui
 * @Since 2021/12/10
 */
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args) throws BeansException;

}
